<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>7.展开运算符</title>
  </head>
  <body>
    <script type="text/javascript" >
      let person = {name:'晶晶',age:18}

      let obj = {
        a:1,
        b:2,
        ...person
      }

      console.log(obj)
      
    </script>
  </body>
</html>